package com.feng.exer2;

import com.feng.exer.CreateLinklist;
import com.feng.exer.CreateLinklistImpl;
import com.feng.exer.DefineNode;

public interface OtherMethods {
    //计算链表有多少个结点
    public int AllNodes(CreateLinklistImpl linklist);
    public CreateLinklistImpl CREATE_LINKLIST();
    //新浪面试题：找出倒数第K个结点
    public DefineNode Xinlang(CreateLinklistImpl linklist,int k);
    public DefineNode Xinlang2(CreateLinklistImpl linklist,int k);

    //腾讯面试题：翻转单链表
    public CreateLinklistImpl Tencent(CreateLinklistImpl linklist);
}
